package com.ztesoft.book.core.sys.sysdict.service.impl;

import com.ztesoft.book.core.base.base.service.impl.BaseExServiceImpl;
import com.ztesoft.book.core.sys.sysdict.dto.SysDictDTO;
import com.ztesoft.book.core.sys.sysdict.mapper.SysDictMapper;
import com.ztesoft.book.core.sys.sysdict.qo.SysDictQO;
import com.ztesoft.book.core.sys.sysdict.service.SysDictService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 字典表管理
 *
 * @author 汤露露
 * 创建时间：2021-07-23
 */
@Service("SysDictService")
public class SysDictServiceImpl extends BaseExServiceImpl<SysDictMapper, SysDictDTO, SysDictQO> implements SysDictService {

    @Resource
    private SysDictMapper sysDictMapper;

    @Override
    public List<SysDictDTO> getSysDictListByTypeCode(String typeCode) {

        if (StringUtils.isBlank(typeCode)) {
            return null;
        }

        return sysDictMapper.getSysDictListByTypeCode(typeCode);


    }


    @Override
    protected SysDictMapper getMapper() {
        return sysDictMapper;
    }


}
